﻿@model SimpleIdServer.FastFed.ApplicationProvider.UIs.ViewModels.AuthenticateViewModel
@using SimpleIdServer.FastFed.ApplicationProvider.Startup.Resources

@{
    ViewBag.Title = AuthenticateResource.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="loginContainer">
    <div class="card login">
        <div class="card-body">
            <h5 class="card-title">@AuthenticateResource.Authenticate</h5>
            <div>
                <a class="btn btn-secondary" href="@Url.Action("Login", "Home")">@AuthenticateResource.Authenticate</a>
            </div>
            <div class="divider">
                <p class="fw-bold text">OR</p>
            </div>
            <div>
                <ul class="extauth">
                    @foreach(var provider in Model.ExternalIdProviders)
                    {
                        <li>
                            <a class="btn btn-secondary" href="@Url.Action("ExternalLogin", "Home", new { scheme = provider.AuthenticationScheme })">@provider.DisplayName</a>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>
</div>